package hy;

public class Test {
    public static void main(String[] args) throws Exception {
        System.out.println(new A());
    }
}
class A {
    B b;
    public A() {
        b=new B();
    }
}

class B {
    A a;
    public B() {
        a=new A();
    }
}
